<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>截取视频图片</title>
    <style>
        body {
            margin: 0;
        }
        .text {
            font-size: 18px;
            color: #C00;
            padding: 0 20px;
        }
        #button {
            padding: 10px 40px;
            background: #C00;
            border: none;
            color: #FFF;
            border-radius: 20px;
            font-size: 18px;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <video id="video" muted controls="controls" width="1000">
        <source src="https://img-baofun.zhhainiao.com/fs/live/preview_video/65c507fbba6f35db58c557245913013a_preview.mp4">
    </video>
    <div>
        <button id="button">截取当前帧</button>
        <span class="text">需要浏览器开启跨域模式</span>
    </div>
    <div id="output"></div>

    <script src="./index.js"></script>
</body>
</html>